<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>测试api之express连接database</title>
  </head>
  <body>
    <div>测试api之express连接database</div>
    <script>
      function getList() {
        fetch("http://localhost:3000/list", {
          method: "GET",
        })
          .then((res) => res.json())
          .then((res) => {
            console.log("res", res);
          });
      }
      getList();
    </script>
  </body>
</html>
